/*
 * CoupledHeatfluxBC.C
 *
 *  Created on: Feb 4, 2020
 *      Author: liuxiao
 */


#include "CoupledHeatfluxBC.h"
#include "libmesh/meshfree_interpolation.h"
#include "libmesh/system.h"
#include "libmesh/radial_basis_interpolation.h"
registerMooseObject("TrilobitaApp", CoupledHeatfluxBC);
template<>
InputParameters validParams<CoupledHeatfluxBC>()
{
  InputParameters params = validParams<IntegratedBC>();
  return params;
}

CoupledHeatfluxBC::CoupledHeatfluxBC(const InputParameters & parameters) :
  IntegratedBC(parameters),
  _qn(getMaterialProperty<Real>("net_heatflux"))
{
}

Real CoupledHeatfluxBC::computeQpResidual()
{
  Real flux = _qn[_qp];
  return -_test[_i][_qp]*flux;
}

Real CoupledHeatfluxBC::computeQpJacobian()
{
  return 0;
}





